feat(openapi): add deterministic output and skip-unchanged features#33
Merged
dguisinger merged 2 commits intodevelopfrom Dec 30, 2025
Merged
feat(openapi): add deterministic output and skip-unchanged features#33dguisinger merged 2 commits intodevelopfrom
dguisinger merged 2 commits intodevelopfrom
Conversation
Member
dguisinger
commented
Dec 30, 2025
- Add OpenApiDocumentSorter utility to enforce consistent ordering of all OpenAPI collections (paths, schemas, operations, responses, etc.)
- Implement deterministic sorting rules: alphabetical for most collections, HTTP method order for operations, numeric for status codes
- Update OpenApiMerger to sort documents before returning merged results
- Update OpenApiSpecGenerator with sorting logic in separate partial class for maintainability
- Add --force flag to MergeCommand to allow overwriting unchanged files
- Implement skip-unchanged logic in merge tool to prevent unnecessary file writes when content hasn't changed
- Add comprehensive property-based tests for deterministic output validation
- Add tests for skip-unchanged behavior in merge operations
- Add design specification and requirements documentation for deterministic output feature
- Ensures identical OpenAPI output across multiple runs with identical input, improving build reproducibility
- Add OpenApiDocumentSorter utility to enforce consistent ordering of all OpenAPI collections (paths, schemas, operations, responses, etc.) - Implement deterministic sorting rules: alphabetical for most collections, HTTP method order for operations, numeric for status codes - Update OpenApiMerger to sort documents before returning merged results - Update OpenApiSpecGenerator with sorting logic in separate partial class for maintainability - Add --force flag to MergeCommand to allow overwriting unchanged files - Implement skip-unchanged logic in merge tool to prevent unnecessary file writes when content hasn't changed - Add comprehensive property-based tests for deterministic output validation - Add tests for skip-unchanged behavior in merge operations - Add design specification and requirements documentation for deterministic output feature - Ensures identical OpenAPI output across multiple runs with identical input, improving build reproducibility
- Add deterministic output documentation with comprehensive sorting details - Paths, schemas, properties, tags, and security schemes now sorted alphabetically - Operations sorted by HTTP method order for consistency - Responses sorted by status code in ascending order - Examples sorted alphabetically by name - Add skip unchanged output feature documentation for merge tool - New `--force` flag to override skip behavior - Verbose logging for skipped files - Document API changes to `OpenApiMerger.Merge()` for sorted output - Document source generator sorting behavior for deterministic serialization
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.